package il.ac.tau.cvws.scrabblesidekick.client.app.controller;

import il.ac.tau.cvws.scrabblesidekick.client.ui.CalibrationActivity;
import il.ac.tau.cvws.scrabblesidekick.client.ui.GameActivity;
import il.ac.tau.cvws.scrabblesidekick.client.ui.ScrabbleSidekickActivity;
import android.content.Context;
import android.content.Intent;

/* The controller of the main (welcome, menu) activity.
 */
public class MainController extends ScrabbleSidekickController
{
	public MainController(ScrabbleSidekickActivity activity)
	{
		super(activity);
	}
	
	/* Start the CalibrationActivity, for calibrating the engine before the game.
	 */
	public void startCalibration(Context context)
	{
		Intent startIntent = new Intent(context, CalibrationActivity.class);
		
		_activity.invokeStartActivityForResult(startIntent, 0);
	}
	
	/* Start the GameActivity, for starting a new game.
	 */
	public void startGame(Context context)
	{
		Intent startIntent = new Intent(context, GameActivity.class);
		
		_activity.invokeStartActivityForResult(startIntent, 0);
	}
}
